package org.dromara.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.business.domain.GoodsCoupon;
import org.dromara.common.json.handler.DecimalRemoveZeroSerializer;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 优惠券视图对象 goods_coupon
 *
 * @author zlj
 * @date 2025-06-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GoodsCoupon.class)
public class GoodsCouponVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ExcelProperty(value = "编号")
    private Long couponId;

    /**
     * 优惠券名称
     */
    @ExcelProperty(value = "优惠券名称")
    private String name;

    /**
     * 抵扣金额
     */
    @ExcelProperty(value = "抵扣金额")
    @JsonSerialize(using = DecimalRemoveZeroSerializer.class)
    private BigDecimal amount;

    /**
     * 满多少可用
     */
    @ExcelProperty(value = "满多少可用")
    @JsonSerialize(using = DecimalRemoveZeroSerializer.class)
    private BigDecimal conditionAmount;

    /**
     * 文字介绍
     */
    @ExcelProperty(value = "文字介绍")
    private String info;


    /**
     * 开始领取时间
     */
    @ExcelProperty(value = "开始领取时间")
    private Date startTime;

    /**
     * 结束领取时间
     */
    @ExcelProperty(value = "结束领取时间")
    private Date endTime;

    private String status;

    @ExcelProperty(value = "优惠券价格")
    @JsonSerialize(using = DecimalRemoveZeroSerializer.class)
    private BigDecimal price;
}
